package com.robertbak.geolocation
{
	import com.robertbak.geolocation.interfaces.ICoordinates;

	public class GeoCoordinates implements ICoordinates
	{	
		
		public function GeoCoordinates(O:Object)
		{
			if (O != null)
			{
				_latitude  = O.latitude;
				_longitude = O.longitude;
				_altitude  = O.altitude;
				_accuracy  = O.accuracy;
				_altitudeAccuracy = O.altitudeAccuracy;
				_heading   = O.heading;
				_speed     = O.speed;
			}
		}

		private var _latitude:Number;
		public function get latitude():Number
		{
			return _latitude;
		}
		public function set latitude(v:Number):void
		{
			 _latitude = v;
		}
		
		private var _longitude:Number;
		public function get longitude():Number
		{
			return _longitude;
		}
		public function set longitude(v:Number):void
		{
			_longitude = v;
		}
		
		private var _altitude:Number;
		public function get altitude():Number
		{
			return _altitude;
		}
		
		private var _accuracy:Number;
		public function get accuracy():Number
		{
			return _accuracy;
		}
		
		private var _altitudeAccuracy:Number;
		public function get altitudeAccuracy():Number
		{
			return _altitudeAccuracy;
		}
		
		private var _heading:Number;
		public function get heading():Number
		{
			return _heading;
		}
		
		private var _speed:Number;
		public function get speed():Number
		{
			return _speed;
		}
		
	}
}